<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Open Source Geospatial Foundation. All rights reserved. This code is licensed under 
  the GPL 2.0 license, available at the root application directory. -->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
>

    <!-- A way to avoid security wrapping of OpenSearchDataAccess -->
    <bean id="openSearchSecureDataFactory"
          class="org.geoserver.opensearch.eo.OpenSearchSecureDataFactory"/>

    <bean id="oseoLoader" class="org.geoserver.opensearch.eo.OSEOXStreamLoader">
        <constructor-arg ref="resourceLoader"/>
    </bean>

    <bean id="openSearchAccessProvider" class="org.geoserver.opensearch.eo.OpenSearchAccessProvider">
        <constructor-arg ref="geoServer" />
    </bean>

    <bean id="oseoFactoryExtension" class="org.geoserver.opensearch.eo.OSEOFactoryExtension"/>
    
</beans>
